package com.foreveross.fetl.core.domain.doub.repository;

import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

import com.foreveross.fetl.core.domain.doub.DoublePlaneInfoEntity;

public interface IDoublePlaneInfoRepository {
	
	/**
	 * 保存 planeInfo
	 * @param entity
	 * @throws SQLException
	 */
	public void create(DoublePlaneInfoEntity entity) throws SQLException;
	
	public void create(Collection<DoublePlaneInfoEntity> collections)throws SQLException;
	
	/**
	 * 删除planeInfo 
	 * @param entity
	 * @throws SQLException
	 */
	public void delete(DoublePlaneInfoEntity entity) throws SQLException;
	
	public void delete(Collection<DoublePlaneInfoEntity> collections)throws SQLException;
	
	/**
	 * 查planeInfo的信息
	 * @param hbaseKey
	 * @param fromCity
	 * @param toCity
	 * @param flightBatchDate
	 * @param returnFlightDate
	 * @param flightNo
	 * @return
	 * @throws SQLException
	 */
	public List<DoublePlaneInfoEntity> findByCondition(String hbaseKey,String fromCity,String toCity,String flightBatchDate,String returnFlightDate,String flightNo) throws SQLException;
	
	/**
	 * 查询 planInfo  只返回 planeInfo 的主属性 
	 * @param hbaseKey
	 * @param fromCity
	 * @param toCity
	 * @param flightBatchDate
	 * @param returnFlightDate
	 * @param flightNo
	 * @return
	 */
	public List<DoublePlaneInfoEntity> findPlaneInfoProperty(String hbaseKey,
			String fromCity, String toCity, String flightBatchDate,String returnFlightDate,String flightNo);
	
	/**
	 * 返回全部属性
	 * @param hbaseKey
	 * @param fromCity
	 * @param toCity
	 * @param flightBatchDate
	 * @param returnFlightDate
	 * @param flightNo
	 * @return
	 */
	public List<DoublePlaneInfoEntity> findPlanInfoAndFamily(String hbaseKey,
			String fromCity, String toCity, String flightBatchDate,String returnFlightDate,String flightNo);
	
	

}
